﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MQ.Core.Common;

namespace MQ.Core.Admin.Areas.Manager.Controllers
{
    [Route("api/manager/[controller]")]
    [ApiController]
    public class LoginController : ApiController
    {
        [HttpPost]
        [Route("")]
        public object Login([FromForm]string account, [FromForm]string password, [FromForm]string code)
        {
            return Success(new { token=Guid.NewGuid().ToString()});
        }
        [HttpPost]
        [Route("/sms")]
        public ActionResult<ResultMsg> LoginBySms([FromForm]string mobile, [FromForm]string sms, [FromForm]string code)
        {
            return ResultMsg.Ok();
        }
        [HttpPost]
        [Route("/email")]
        public ActionResult<ResultMsg> LoginByEmail([FromForm]string email, [FromForm]string password, [FromForm]string code)
        {
            return ResultMsg.Ok();
        }
    }
}